package io.github.tangwan.thread;

/**
 * @author tangwan
 * @version V1.0
 * created on 2021/10/8 11:11
 * @since JDK 1.8
 */
public class MyRunnable implements Runnable {

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread t = new Thread(new MyRunnable());
            t.start();
        }
    }

}
